function z = runrepeat(n, w)
    z = zeros(1, n);
    for i = 1:n
        disp(horzcat(['Run ', num2str(i)]));
        z(i) = runonce(w);
    end
end
